package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 用户收货地址表
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_USER_ADDRESS")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="用户收货地址表",description="用户收货地址表")
public class Address implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/** ID */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "ID")
	private Long id;
	
	/** 用户id */
	@Column(name = "user_id" )
	@ApiModelProperty(value = "用户id")
	private Long userId;
	
	/** 创建时间 */
	@Column(name = "create_time" )
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	
	/** 收件人 */
	@Column(name = "name" )
	@ApiModelProperty(value = "收件人")
	private String name;
	
	/** 联系电话 */
	@Column(name = "phone" )
	@ApiModelProperty(value = "联系电话")
	private String phone;
	
	/** 地区id */
	@Column(name = "area_id" )
	@ApiModelProperty(value = "地区id")
	private Long areaId;
	
	/** 地区名称 */
	@Column(name = "area_name" )
	@ApiModelProperty(value = "地区名称")
	private String areaName;
	
	/** 详细地址 */
	@Column(name = "address" )
	@ApiModelProperty(value = "详细地址")
	private String address;
	
	/** 地址类型（1、、、） */
	@Column(name = "type" )
	@ApiModelProperty(value = "地址类型（1、、、）")
	private String type;
	
	/** 状态（1默认、2非默认） */
	@Column(name = "status" )
	@ApiModelProperty(value = "状态（1默认、2非默认）")
	private Integer status;
	
}
